Skip to content

Skip branch existence checks for archived doc versions#23370

Merged
kikiya merged 2 commits into
mainfrom
fix-branch-existence-check-archived-versions
May 19, 2026
Merged

Skip branch existence checks for archived doc versions#23370
kikiya merged 2 commits into
mainfrom
fix-branch-existence-check-archived-versions

Conversation

@ebembi-crdb
Copy link
Copy Markdown
Contributor

Summary

  • Fixes Branch existence check failure (automated) #23175
  • Updates the nightly branch existence validation script to skip versions whose docs have been archived from the site (no folder under src/current/)
  • The 6 failing versions (v1.0, v1.1, v2.0, v2.1, v19.1, v19.2) no longer have branches in cockroachdb/generated-diagrams, but their crdb_branch_name entries in versions.csv are still valid historical data — so the script now skips them rather than requiring data changes
  • Future archived versions will automatically be skipped as their docs folders are removed

Test plan

  • python3 .github/scripts/validate_branch_existence.py --self-test passes (2 new test cases added)
  • Full run against versions.csv passes — archived versions print SKIP (archived), active versions still checked normally

🤖 Generated with Claude Code

Fixes #23175. The nightly branch existence workflow fails for v1.0,
v1.1, v2.0, v2.1, v19.1, and v19.2 because their branches no longer
exist in cockroachdb/generated-diagrams. Rather than modifying
versions.csv, update the validation script to skip versions that have
been archived from the site (i.e., have no docs folder under
src/current/).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ebembi-crdb ebembi-crdb requested a review from a team as a code owner May 19, 2026 11:57
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit feea42f
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/6a0cb01da075ad0008fdc752

@github-actions
Copy link
Copy Markdown

Files changed:

  • .github/scripts/validate_branch_existence.py

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit feea42f
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/6a0cb01d5abb3800085143fe

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Netlify Preview

Name Link
🔨 Latest commit feea42f
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6a0cb01db7757100082bca81
😎 Deploy Preview https://deploy-preview-23370--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kikiya kikiya merged commit 841d70a into main May 19, 2026
5 checks passed
@kikiya kikiya deleted the fix-branch-existence-check-archived-versions branch May 19, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Branch existence check failure (automated)

3 participants